//Copyright 2012 Trevin Liberty
//GNU GPL v3
//Author: Trevin Liberty
//
//Initializes Allegro 5 and loads all basic, tile, images.

#ifndef ALLEGRO_MISC_H
#define ALLEGRO_MISC_H

#include <allegro5\allegro.h>
#include <allegro5\allegro_primitives.h>
#include <allegro5\allegro_image.h>
#include <allegro5\allegro_font.h>
#include <allegro5\allegro_ttf.h>

#include "Structs.h"

//Initializes Allegro 5
//ATTN: MUST be called before using any Allegro 5 functions.
int allegroInit(int WINDOW_WIDTH, int WINDOW_HEIGHT, int MAX_FPS, ALLEGRO_DISPLAY* &display, 
	ALLEGRO_EVENT_QUEUE* &event_queue, ALLEGRO_TIMER* &timer);

//Loads all basic tiles.
//Upon return base and fringe will be initialized.
//	PARAMS:
//imageArray &base: Uninitialized imageArray.
//imageArray &fringe: Uninitialized imageArray.
void loadImages(imageArray &base, imageArray &fringe);
#endif